/*
 * @Description: 教师接口封装
 * @Autor: GuluGuluu
 * @Date: 2022-12-02 17:35:33
 * @LastEditors: GuluGuluu
 * @LastEditTime: 2023-06-24 22:52:19
 */
import Request from "../request";

const TeacherService = {
  getTeacherList: () =>
    Request.get(`/teacher/teacherlist?pageNum=1&pageSize=10`).then(
      (res) => res.data
    ),
  updateTeacher: (param) =>
    Request.put(`/teacher`, param).then((res) => res.data),
  deleteTeacher: (id) => Request.get(`/teacher/${id}`).then((res) => res.data),
  addTeacher: (param) =>
    Request.post(`/teacher`, param).then((res) => res.data),
};
export default TeacherService;
